<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});

//后台
Route::resource('admin','admin\LoginController');
Route::group(['namespace' => 'admin'],function(){
    //后台首页
    Route::get('admin/index/index','IndexController@index');
    //用户列表
    Route::resource('ulist','UserController');
    //商品列表
    Route::resource('glist','GoodsController');
    //企业列表
    Route::resource('flist','FirmController');


});

Route::get('home/index','home\IndexController@index');